package test;

import static org.junit.Assert.*;
import junit.framework.TestCase;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.JUnitCore;
import org.junit.runner.Request;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;

public class TreeListJUTestsDummy extends TestCase{
	private Result results;

	public TreeListJUTestsDummy() {
		
	}
	
	@Test
	public void test() {
		this.results = JUnitCore.runClasses(TreeListJUTests.class);
		for (Failure f : this.results.getFailures()) {
			System.out.println("TEST FAILED : " + f.getDescription().toString() + '\n');
		}
		System.out.println("TEST EJECUTADOS : " + this.results.getRunCount() + " | FALLOS : " + this.results.getFailureCount()+'\n');
		assertTrue(this.results.getFailureCount() == 0);
	}
	
	@After
	public void clean() {
		this.results = null;
	}

}
